package com.ljf.tijian.mapper;

import com.ljf.tijian.pojo.Setmeal;
import com.ljf.tijian.pojo.Users;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealMapper {
    int deleteByPrimaryKey(Integer smId);

    int insert(Setmeal record);

    int insertSelective(Setmeal record);

    Setmeal selectByPrimaryKey(Integer smId);

    int updateByPrimaryKeySelective(Setmeal record);

    int updateByPrimaryKey(Setmeal record);

    @Select("select smId, name, type, price from setmeal where type = #{sex}")
    List<Setmeal> selectByType(Users user);
}